package com.agileai.wm.model;

import java.io.Serializable;
import java.util.Date;

import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "Token")
public class Token implements Serializable{
	private static final long serialVersionUID = 1253355799054892118L;
	
	private String id = null;
	private String code = null;
	private Date createTime = null;
	private int maxAliveSeconds = 0;
	
	public String getId() {
		return id;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setId(String id) {
		this.id = id;
	}
	public void setCreateTime(Date lastUseTime) {
		this.createTime = lastUseTime;
	}
	public int getMaxAliveSeconds() {
		return maxAliveSeconds;
	}
	public void setMaxAliveSeconds(int maxAliveSeconds) {
		this.maxAliveSeconds = maxAliveSeconds;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
}
